package cn.faifai.tagapi.entity;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;

import java.util.Date;

@Data
@Entity//指定这是实体类
@Table(name = "system_config")
public class SystemConfig {
    @Id
    @Column(name = "id")
    private Long id;
    @Column(name= "label")
    private String label;
    @Column(name = "key")
    private String key;
    @Column(name = "value")
    private String value;
    // 修改字段，看是否自动新增字段
    @Column(name = "created_at")
    private Date createdAt;
    @Column(name = "created_by")
    private Long createdBy;
}
